<div class="ui basic segment">
  <h1 class="ui dividing header">
    <%= link "News", to: Routes.admin_news_item_path(@conn, :index) %>
    &raquo;
    <%= link "Sponsorships", to: Routes.admin_news_sponsorship_path(@conn, :index) %>
    &raquo;
     <%= @year %> Schedule
  </h1>

  <div class="actions">
    <%= link to: Routes.admin_news_sponsorship_path(@conn, :new), class: "ui right floated primary basic button" do %>
      <i class="add icon"></i>
      Sponsorship
    <% end %>

    <div class="ui right floated basic buttons">
      <%= link to: Routes.admin_news_sponsorship_path(@conn, :schedule, year: @year - 1), class: "ui button" do %>
        <i class="angle double left icon"></i>
        <%= @year - 1 %>
      <% end %>
      <button class="ui button js-toggle-past">Hide Past</button>
      <%= link to: Routes.admin_news_sponsorship_path(@conn, :schedule, year: @year + 1), class: "ui button" do %>
        <%= @year + 1 %>
        <i class="angle double right icon"></i>
      <% end %>
    </div>

  </div>
</div>

<div class="ui basic segment">
  <%= render("_schedule.html", conn: @conn, weeks: @weeks) %>
</div>
